import Vue from 'vue'
// import Router from 'vue-router'
import Home from './views/Home.vue'
import { IonicVueRouter } from '@ionic/vue';

Vue.use(IonicVueRouter)

export default new IonicVueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
		{
		  path: '/login',
		  name: 'login',
		  // route level code-splitting
		  // this generates a separate chunk (about.[hash].js) for this route
		  // which is lazy-loaded when the route is visited.
		  component: () => import(/* webpackChunkName: "about" */ './views/Login.vue')
		},
		{
		  path: '/vanTypes',
		  name: 'vanTypes',
		  // route level code-splitting
		  // this generates a separate chunk (about.[hash].js) for this route
		  // which is lazy-loaded when the route is visited.
		  component: () => import(/* webpackChunkName: "about" */ './views/vanTypeList.vue')
		},
		{
		  path: '/shopCarts',
		  name: 'shopCarts',
		  // route level code-splitting
		  // this generates a separate chunk (about.[hash].js) for this route
		  // which is lazy-loaded when the route is visited.
		  component: () => import(/* webpackChunkName: "about" */ './views/shopCarts.vue')
		},
		{
		  path: '/orderDetail',
		  name: 'orderDetail',
		  // route level code-splitting
		  // this generates a separate chunk (about.[hash].js) for this route
		  // which is lazy-loaded when the route is visited.
		  component: () => import(/* webpackChunkName: "about" */ './views/orderDetail.vue')
		},
		{
		  path: '/orderPrint',
		  name: 'orderPrint',
		  // route level code-splitting
		  // this generates a separate chunk (about.[hash].js) for this route
		  // which is lazy-loaded when the route is visited.
		  component: () => import(/* webpackChunkName: "about" */ './views/orderPrint.vue')
		},
		{
		  path: '/printPage',
		  name: 'printPage',
		  // route level code-splitting
		  // this generates a separate chunk (about.[hash].js) for this route
		  // which is lazy-loaded when the route is visited.
		  component: () => import(/* webpackChunkName: "about" */ './views/printPage.vue')
		},
  ]
})
